package com.gsj.lx.mybatislx.mapper;



import com.gsj.lx.mybatislx.model.MyUser;
import com.gsj.lx.mybatislx.model.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: mybatislx
 * @description:
 * @author: 郭书江
 * @create: 2022-05-20 09:43
 **/

public interface UserMapper {

        List<User> getAll();

        User getOne(Long id,String username);

        List<MyUser> getMyUserAll(String sql);

        int insert(User user);


        int update(User user);


        int delete(Long id);

        int insertsql(String sql);

        int batchInsertsql(String sql);


}
